
<template>
  <div class="mainBg">
    <div class="mainLogo">
      <img src="../assets/images/u6.png" alt="" />
    </div>
    <div class="routerbtn">
      <el-button class="routerbtnItem" type="primary" @click="toHome"
        >数据展示大屏</el-button
      >
      <el-button class="routerbtnItem" type="primary" @click="toDataView"
        >数据工作台</el-button
      >
    </div>
    <el-button class="logOut" :icon="User" @click="logOut" circle />

    <div class="company">版权所有：长沙经济技术开发区水质净化工程有限公司</div>
  </div>
</template>

<script setup>
import { User } from "@element-plus/icons-vue";
import { useRouter } from "vue-router";
const router = useRouter();
const toHome = () => {
  router.push({ path: "/home" });
};
const toDataView = () => {
  router.push({ path: "/dataView" });
};
const logOut = () => {
  router.push({ path: "/login" });
};
</script>

<style scoped lang="less">
.mainBg {
  width: 100%;
  height: 100%;
  background: url("../assets/images/bg2.jpg");
  background-size: cover;
  background-position: center center;
  position: relative;

  .mainLogo {
    position: absolute;
    top: 80px;
    left: 0;
    opacity: 0.8;
    width: 100%;
    background: #fff;
    text-align: center;

    img {
      width: 70%;
    }
  }
}

.routerbtn {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: absolute;
  bottom: 20%;

  .routerbtnItem {
    width: 176px;
    height: 48px;
    margin: 0 40px;
    font-size: 18px;
    color: #409eff;
    background: #fff;
    border: 1px solid #fff;
  }
}

.logOut {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 32px;
  width: 60px;
  height: 60px;
}
.company {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  line-height: 30px;
  width: 400px;
  bottom: 0px;
  z-index: 1000;
  text-align: center;
  font-size: 14px;
  color: #333;
  background: #fff;
  opacity: 0.75;
}
</style>
